package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Role;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleMapper {
    Page<Role> list(String roleName);

    Boolean insert(Role role);

    @Select("select * from sys_role where id = #{roleIds}")
    Role selectById(String roleIds);

    @Delete("delete from sys_role where id = #{roleIds}")
    void delete(String roleIds);

    Boolean update(Role role);
}
